package com.xintai.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xintai.system.mapper.ErpOtherSiJiMapper;
import com.xintai.system.domain.setother.ErpOtherSiJi;
import com.xintai.system.service.IErpOtherSiJiService;

/**
 * 司机管理Service业务层处理
 *
 * @author xintai
 * @date 2021-01-18
 */
@Service
public class ErpOtherSiJiServiceImpl implements IErpOtherSiJiService {

    @Autowired
    private ErpOtherSiJiMapper erpOtherSiJiMapper;

    /**
     * 查询司机管理
     *
     * @param otherId 司机管理ID
     * @return 司机管理
     */
    @Override
    public ErpOtherSiJi selectErpOtherSiJiById(Integer otherId)
    {
        return erpOtherSiJiMapper.selectErpOtherSiJiById(otherId);
    }

    /**
     * 查询司机管理列表
     *
     * @param erpOtherSiJi 司机管理
     * @return 司机管理
     */
    @Override
    public List<ErpOtherSiJi> selectErpOtherSiJiList(ErpOtherSiJi erpOtherSiJi)
    {
        return erpOtherSiJiMapper.selectErpOtherSiJiList(erpOtherSiJi);
    }

    /**
     * 新增司机管理
     *
     * @param erpOtherSiJi 司机管理
     * @return 结果
     */
    @Override
    public int insertErpOtherSiJi(ErpOtherSiJi erpOtherSiJi)
    {
        return erpOtherSiJiMapper.insertErpOtherSiJi(erpOtherSiJi);
    }

    /**
     * 修改司机管理
     *
     * @param erpOtherSiJi 司机管理
     * @return 结果
     */
    @Override
    public int updateErpOtherSiJi(ErpOtherSiJi erpOtherSiJi)
    {
        return erpOtherSiJiMapper.updateErpOtherSiJi(erpOtherSiJi);
    }

    /**
     * 批量删除司机管理
     *
     * @param otherIds 需要删除的司机管理ID
     * @return 结果
     */
    @Override
    public int deleteErpOtherSiJiByIds(Integer[] otherIds)
    {
        return erpOtherSiJiMapper.deleteErpOtherSiJiByIds(otherIds);
    }

    /**
     * 删除司机管理信息
     *
     * @param otherId 司机管理ID
     * @return 结果
     */
    @Override
    public int deleteErpOtherSiJiById(Integer otherId)
    {
        return erpOtherSiJiMapper.deleteErpOtherSiJiById(otherId);
    }

    @Override
    public boolean verifyOtherSiJi(ErpOtherSiJi erpOtherSiJi) {
        return erpOtherSiJiMapper.verifyOtherSiJi(erpOtherSiJi);
    }
}
